home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib42b.dsk
/
DEMO GAME.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
743b
|
26 lines
10 <UNKNOWN TOKEN>
20 HOME
40 X = 0
50 <UNKNOWN TOKEN>
60 X = X +1:R1 = 0.1:R2 = 0
70 <UNKNOWN TOKEN>R1 < >R2<UNKNOWN TOKEN>
80 TT = INT(TT +R1 +R2)
85 IF P(X) +TT > = 100 THEN 210
90 VTAB 10: CALL -868
95 PRINT "PLAYER "X;: INPUT " ROLL OR QUIT(R,Q) ";C$
100 IF C$ = "R" THEN <UNKNOWN TOKEN>
110 <UNKNOWN TOKEN>
120 R1 = 1 + INT(6 * RND(3)):R2 = 1 + INT(6 * RND(3)): PRINT R1,R2
130 <UNKNOWN TOKEN>
140 <UNKNOWN TOKEN>
150 R1 = 0:R2 = 0
160 <UNKNOWN TOKEN>
165 <UNKNOWN TOKEN>
170 <UNKNOWN TOKEN>
180 PRINT "TURN OVER": FOR ZZ = 1 TO 1000: NEXT ZZ
185 IF R1 = 0 THEN P(X) = P(X) +TT
187 TT = 0: HOME : PRINT "PLAYER 1: "P(1): PRINT "PLAYER 2: "P(2)
190 <UNKNOWN TOKEN>X = 2
200 GOTO 40
210 PRINT "PLAYER "X" WINS!!!"
220 END